{extend name="public:layout" /}

{block name="title"}
	<title>{:site('siteName')}-申请挂售</title>
{/block}

{block name="css"}
	<link rel="stylesheet" type="text/css" href="__STATIC__/{$theme}/css/user.css">
	<link rel="stylesheet" href="__STATIC__/share/css/share.css" type="text/css" />
	<style type="text/css">
		#smsTpl { display: none; }
	</style>
{/block}

{block name="content"}
	<div class="layui-main">
		<div class="user-main">
			<div class="user-left">
				{include file="public:user" index="0" /}
			</div>
			<div class="user-right">
				<div class="layui-tab layui-tab-brief">
					<ul class="layui-tab-title">
						<li class="layui-this">申请挂售</li>
						<li>
							<a href="/mySell">挂售记录</a>
						</li>
					</ul>
					<div class="layui-tab-content">
						<blockquote class="layui-elem-quote layui-quote-nm">挂售说明：每次挂售数量不能小于{$config.minMoney}，并且是{$config.minMoney}的倍数。</blockquote>
						<form class="layui-form" action="{:url('index/sell/sell')}">
							<div class="layui-form-item">
							    <label class="layui-form-label">剩余{$config.money}</label>
							    <div class="layui-input-inline">
							    	<button class="layui-btn layui-btn-small layui-btn-radius layui-btn-danger">{$U.money}</button>
							    </div>
							</div>
							<div class="layui-form-item">
							    <label class="layui-form-label">挂售数量</label>
							    <div class="layui-input-inline">
							    	<input type="text" name="money" lay-verify="required|number" class="layui-input">
							    </div>
							    <div class="layui-form-mid layui-word-aux">请输入60的倍数</div>
							</div>
							<div class="layui-form-item">
							    <label class="layui-form-label">支付密码</label>
							    <div class="layui-input-inline">
							    	<input type="password" name="pwd" lay-verify="required" class="layui-input">
							    </div>
							    <div class="layui-form-mid layui-word-aux">请输入支付密码</div>
							</div>
						  	<div class="layui-form-item">
							    <label class="layui-form-label">备注</label>
							    <div class="layui-input-inline">
							    	<input type="text" name="note" class="layui-input">
							    </div>
							    <div class="layui-form-mid layui-word-aux">非必填</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label"></label>
							    <div class="layui-input-inline">
							    	<input type="hidden" name="" value="" />
							    	<input type="hidden" name="__token__" value="{$Request.token}" />
							    	<button class="layui-btn layui-btn-main" lay-submit>确定</button>
							    </div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
{/block}

{block name="script"}
	<script type="text/javascript">
		layui.use(['jquery','form'], function(){
			var $ = layui.jquery;
			var form = layui.form();
		});
	</script>
{/block}